﻿<views:EntityView 
        x:Class="Conference.UX.Wpf.Views.SpeakerCreateEntityView"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:views="clr-namespace:TeaLightV5.Foundation.UX.Wpf.Views;assembly=TeaLightV5.Foundation.UX.Wpf"
        mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="300">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0" >
            <TextBlock Text="Speaker" />
        </StackPanel>
        <ScrollViewer Grid.Row="1">
            <StackPanel DataContext="{Binding Data}">
                <TextBlock HorizontalAlignment="Center" Text="{Binding Id}"/>

                <TextBlock Text="Name"/>
                <TextBox   Text="{Binding Name, Mode=TwoWay}"/>

                <TextBlock Text="Title" />
                <TextBox   Text="{Binding Title, Mode=TwoWay}"/>

                <TextBlock Text="Company" />
                <TextBox   Text="{Binding Company, Mode=TwoWay}" />

                <TextBlock Text="Biography" />
                <TextBox   Text="{Binding Biography, Mode=TwoWay}"/>
            </StackPanel>
        </ScrollViewer>
        <StackPanel Grid.Row="2">
            <Button Command="{Binding SaveCommand}">Save</Button>
        </StackPanel>
    </Grid>
</views:EntityView>
